package com.fizzkai.p2p.core.mapper;

import com.fizzkai.p2p.core.domain.LoginInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LoginInfoMapper {

    int insert(LoginInfo record);

    int selectByUsername(String username);

    LoginInfo selectByLogin(@Param("username") String username, @Param("password") String password, @Param("userType") int userType);

    int selectCountByUserType(int userType);

    List<LoginInfo> selectIsAuditorList(@Param("userType") int userType, @Param("isAuditor") int isAuditor);

    LoginInfo selectByPrimaryKey(Long id);
}